package gamble.qna.vo;


import java.text.SimpleDateFormat;
import java.text.DateFormat;
import java.util.Date;

import org.springframework.web.multipart.MultipartFile;

public class BoardVO {
	
	private int num ;  
	private String writer;
	private String email;
	private String subject;
	private String passwd;
	private String reg_date; //입력날짜
	private int readcount; //조회수
	private int ref; //그룹
	private int re_step; //순서
	private int re_level; //단계
	private String content; //글내용
	private String ip; //클라이언트 ip주소
	private MultipartFile upload;
	private String search;
	
	private String upload2;	

	
	
	
	
	public MultipartFile getUpload() {
		return upload;
	}
	public void setUpload(MultipartFile upload) {
		this.upload = upload;
	}
	public String getUpload2() {
/*		String[] bb = upload2.split(".");
		String cc = bb[0];*/
	//	upload2.substring(3, 8);
		
		return upload2;
	}
	public void setUpload2(String upload2) {
		//upload2.substring(3, 8);


		
		this.upload2 = upload2;
		
	}
	
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
	}
	public String getWriter() {
		return writer;
	}
	public void setWriter(String writer) {
		System.out.println("kk:"+writer);
		this.writer = writer;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getSubject() {
		return subject;
	}
	public void setSubject(String subject) {
		this.subject = subject;
	}
	public String getPasswd() {
		return passwd;
	}
	public void setPasswd(String passwd) {
		this.passwd = passwd;
	}
	public String getReg_date() {
		/*Date　regDate1 = new Date();
		regDate1 = SimpleDateFormat("yy/MM/dd");*/

		return reg_date;
	}
	
	public void setReg_date(String regDate) {
		//날짜 형식의 3번째 포멧
		/*DateFormat format3 = DateFormat.getDateInstance(DateFormat.MEDIUM);
		String dd = format3.format(regDate);*/
		String[] aa = regDate.split(" ");
		String bb = aa[0];
		reg_date = bb ;
	}
	
	public int getReadcount() {
		return readcount;
	}
	public void setReadcount(int readcount) {
		this.readcount = readcount;
	}
	public int getRef() {
		return ref;
	}
	public void setRef(int ref) {
		this.ref = ref;
	}
	public int getRe_step() {
		return re_step;
	}
	public void setRe_step(int reStep) {
		re_step = reStep;
	}
	public int getRe_level() {
		return re_level;
	}
	public void setRe_level(int reLevel) {
		re_level = reLevel;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	
	
	
	public String getSearch() {
		return search;
	}
	public void setSearch(String search) {
		this.search = search;
	}
	
	
	
	
	
	
	
}
